package com.htandroid.htandroid.aty;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.CountDownTimer;

import com.htandroid.htandroid.R;

/**
 * Created by lkp on 2015/11/26.
 */
public class SplashActivity extends MyBaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_splash);
        titleBar.setBackgroundColor(Color.parseColor("#f1f1f1"));
        new CountDownTimer(1500, 500) {// 这里写延迟的秒数
            @Override
            public void onTick(long millisUntilFinished) {

            }

            @Override
            public void onFinish() {
                Intent intent = new Intent(getApplicationContext(), Login.class);
                startActivity(intent);
                SplashActivity.this.finish();
            }
        }.start();
    }
}
